package com.link.gateway.base.enterprise.service;


import com.link.gateway.base.enterprise.dao.mybatis.mapper.EnterpriseMapper;
import com.link.gateway.base.enterprise.model.Enterprise;
import com.link.gateway.base.user.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author guoshan
 * @data   2019/7/24
 */
@Service
public class EnterpriseServiceImpl implements EnterpriseService {

    @Resource
    private EnterpriseMapper enterpriseMapper;

    @Override
    public Enterprise queryByUserCorpId(User user) {
        return enterpriseMapper.queryByUserId(user);
    }
}
